var status = -1;
var selectionLog = [];

function start() {
    action(1, 0, 0)
}

function action(d, c, b) {
    if (status == 0 && d == 0) {
        cm.dispose();
        return
    }
    status++;
    selectionLog[status] = b;
    var a = -1;
    if (status <= a++) {
        cm.dispose()
    } else {
        if (status === a++) {
            if (cm.isQuestFinished(39531) && !cm.isQuestFinished(39532)) {
                cm.useItem(2210218, false);
                cm.playerMessage(5, "为了骗过法堂里的那群沟鼠，化身修行者。");
                cm.dispose()
            } else {
                cm.dispose();
                cm.cancelItem(2210218)
            }
            cm.dispose()
        }
    }
};